import appuifw

class Wait(object):
    def __init__(self, s, cancel, cancel_cb):
        self.text = s
        self.allow_cancel = cancel
        self.cancel_callback = cancel_cb

    def show(self):
        appuifw.note(unicode(self.text))

    def set_label(self, s):
        self.text = s
        self.show()

    def close(self):
        pass